# st - simple terminal from suckless.org (personal build)

**st** is a simple, lightweight and minimalist terminal for X (linux/*nix).
This is not my code. I have taken the source from [here](http://st.suckless.org/) and applied some patches.


## Get source

st-0.8.4 can be retrieved from [here](https://dl.suckless.org/st/st-0.8.4.tar.gz).

The source is already retrieved and placed on `src`.


## Changes

The patches are in `patches` directory.

#### 1\. Config

With `config.patch`.

#### 2\. Scrollback [http://st.suckless.org/patches/scrollback/](http://st.suckless.org/patches/scrollback/) (3 patches)

- Adds scrollback feature
- Shift+Page up/down: to scroll previous/next text
- Shift+mouse scroll: scroll text
- Mouse scroll: scroll on less output

#### 3\. New terminal window ([source](https://st.suckless.org/patches/newterm/))

The patch for 0.8.2 doesn't work on latest source. So had to create it from scratch manually. When applied you can press Ctrl+Shift+Enter to open a new terminal window.


## How to prepare the sources

Open a terminal on this directory and run:

```
./patch.sh
```

Build prerequisites might be something like:

```
# Void Linux:
sudo xbps-install make gcc libXft-devel
```

In OpenBSD there might be an `ld: error: unable to find library -lrt` error because [`rt` is already there in libc](https://github.com/kovidgoyal/kitty/issues/2675#issuecomment-631835921). So you might need to run the command below:

```
sed -i'.bak' -r 's/-lrt //' build/config.mk
```

Then:

```
cd build
make clean
make
sudo make install
```
